package com.jhw.feign;

import com.jhw.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author jhw
 * @create 2022/9/29
 */
@FeignClient(value = "service-product")
public interface ProductService {
    @RequestMapping(value = "/product/{id}",method = RequestMethod.GET)
    JSONResult get(@PathVariable("id")Long id);
}
